cmake_minimum_required(VERSION 2.8)

project(bufoverflow_attack)

set(CMAKE_VERBOSE_MAKEFILE ON)

add_compile_options(-g -O2)
if ("${OMITFRAMEPOINTER}" STREQUAL "yes")
  add_compile_options(-fomit-frame-pointer)
else()
  add_compile_options(-fno-omit-frame-pointer)
endif()

add_executable(test_bufoverflow bufoverflow_main.c bufoverflow_attack.c)